home *** CD-ROM | disk | FTP | other *** search
- /* ****************************************************************************
- * *
- * Copyright 1991, 1992, 1993, 1994, Silicon Graphics, Inc. *
- * All Rights Reserved. *
- * *
- * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.; *
- * the contents of this file may not be disclosed to third parties, copied or *
- * duplicated in any form, in whole or in part, without the prior written *
- * permission of Silicon Graphics, Inc. *
- * *
- * RESTRICTED RIGHTS LEGEND: *
- * Use, duplication or disclosure by the Government is subject to restrictions *
- * as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data *
- * and Computer Software clause at DFARS 252.227-7013, and/or in similar or *
- * successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished - *
- * rights reserved under the Copyright Laws of the United States. *
- * *
- *******************************************************************************
- * *
- * PSORT written by *
- * Jean-Pierre Panziera *
- * jpp@corp.sgi.com *
- * *
- *******************************************************************************
- * *
- * PSORT is Parallel implementation of the Merge-Sort Algorithm. *
- * *
- * There are two versions of the library: *
- * mp_mips1/libpsort.a will run on all platforms *
- * mp_mips2/libpsort.a will run on R4000 machines *
- * *
- * Sub-arrays of doubling size are iteratively merge together, *
- * until the whole array is sorted. *
- * Hence at each of the Log(N) steps N/2, N/4, N/8 ... 1 Merge(s) *
- * are performed independantly. *
- * To get even more parallelism, the final Merges are split into *
- * independant submerges *
- * *
- * The "psort" calling sequence is the same as for the C Library "qsort" *
- * *
- * psort( base, nel, size, compar) *
- * *
- * base: array of elements to be sorted, *
- * nel: number of elements to be sorted, *
- * size: size of each element in byte, *
- * compar: pointer to a function that compare 2 elements. *
- * compar takes 2 pointers to elements as arguments *
- * and returns an integer. The integer returned is: *
- * < 0 if first element is smaller than the second *
- * == 0 if first element is equivallent to the second, *
- * > 0 if first element is larger than the second. *
- * *
- * *
- * NOTE: To use PSORT, you must have Power C installed on your *
- * workstation. *
- * *
- **************************************************************************** */
-